package org.esprit.ocm.server.service.impl;

import org.esprit.ocm.client.rpc.UserService;
import org.esprit.ocm.dto.impl.UserDto;
import org.esprit.ocm.server.dao.UserDao;
import org.esprit.ocm.server.metier.common.ICommonService;
import org.esprit.ocm.server.metier.common.impl.ServiceImpl;

@SuppressWarnings("unchecked")
public class UserServiceImpl extends ServiceImpl<UserDto> implements UserService, ICommonService<UserDto> {

	private UserDao	user;

	public UserDao getUser() {
		return user;
	}

	public void setUser(UserDao user) {
		this.user = user;
	}

	public UserDto authenticate(String login, String pass) {
		return user.findByLoginPass(login, pass);
	}

}
